# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-pyexiftool
_pkgname=PyExifTool
pkgver=0.1.1
pkgrel=7
epoch=1
pkgdesc='Python wrapper for exiftool.'
arch=('any')
url='https://pypi.org/project/PyExifTool/#files'
license=('GPL')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('83f9cc10a01dd3921a2590c5f811c52f09010606d17b94ac4e27e1f05bc15903377610be97bc39f8c0e365655b806cb2e8e304fa9115bf64bc395c9f5cfa2620')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

